<template>
  <div id="app">
    <router-view />
    <!-- <button @click="login">点我发送请求</button> -->
  </div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'App',
  methods: {
    login() {
      axios({
        url: '/api/sys/login',
        method: 'POST',
        data: {
          mobile: '13800000002',
          password: '123456'
        }
      }).then(res => {
        console.log(res.data)
        alert(res.data.message)
      })
    }
  }
}
</script>
